package com.thinkingstar.iads.common.filter;

import org.nutz.mvc.*;

import com.thinkingstar.iads.common.config.Globals;

/**
 *
 */
public class GlobalsFilter implements ActionFilter{

	public View match(ActionContext context) {
		context.getRequest().setAttribute("app_name", Globals.APP_NAME);
		context.getRequest().setAttribute("app_base_name", Globals.APP_BASE_NAME);
		context.getRequest().setAttribute("app_base_path", Globals.APP_BASE_PATH);
		return null;
	}

}
